package component.theme;

import component.util.MaterialColors;

import java.awt.*;

/**
  * @Description 一些颜色，便于主题切换，但可能不会做主题切换
  * @author 孔明浩
  * @Date 2020/3/31
  */
public class ThisColor{
    public static Color[] PRIMARY_COLOR_LIST = new Color[10];
    public static Color[] ASSIST_COLOR_LIST = new Color[10];
    public static Color[] NORMAL_COLOR_LIST = new Color[10];

    public static void initColor(String primary,String assist,String normal){
        try {
            Class clazz = Class.forName("client.ui.util.MaterialColors");
        } catch (ClassNotFoundException e){
            e.printStackTrace();
            PRIMARY_50 = MaterialColors.BLUE_50;
            PRIMARY_100 = MaterialColors.BLUE_100;
            PRIMARY_200 = MaterialColors.BLUE_200;
            PRIMARY_300 = MaterialColors.BLUE_300;
            PRIMARY_400 = MaterialColors.BLUE_400;
            PRIMARY_500 = MaterialColors.BLUE_500;
            PRIMARY_600 = MaterialColors.BLUE_600;
            PRIMARY_700 = MaterialColors.BLUE_700;
            PRIMARY_800 = MaterialColors.BLUE_800;
            PRIMARY_900 = MaterialColors.BLUE_900;

            ASSIST_50 = MaterialColors.RED_50;
            ASSIST_100 = MaterialColors.RED_100;
            ASSIST_200 = MaterialColors.RED_200;
            ASSIST_300 = MaterialColors.RED_300;
            ASSIST_400 = MaterialColors.RED_400;
            ASSIST_500 = MaterialColors.RED_500;
            ASSIST_600 = MaterialColors.RED_600;
            ASSIST_700 = MaterialColors.RED_700;
            ASSIST_800 = MaterialColors.RED_800;
            ASSIST_900 = MaterialColors.RED_900;

            NORMAL_50 = MaterialColors.GRAY_50;
            NORMAL_100 = MaterialColors.GRAY_100;
            NORMAL_200 = MaterialColors.GRAY_200;
            NORMAL_300 = MaterialColors.GRAY_300;
            NORMAL_400 = MaterialColors.GRAY_400;
            NORMAL_500 = MaterialColors.GRAY_500;
            NORMAL_600 = MaterialColors.GRAY_600;
            NORMAL_700 = MaterialColors.GRAY_700;
            NORMAL_800 = MaterialColors.GRAY_800;
            NORMAL_900 = MaterialColors.GRAY_900;

        }

        switch (primary) {
            case "blue":
                PRIMARY_50 = MaterialColors.BLUE_50;
                PRIMARY_100 = MaterialColors.BLUE_50;
                PRIMARY_200 = MaterialColors.BLUE_50;
                PRIMARY_300 = MaterialColors.BLUE_50;
                PRIMARY_400 = MaterialColors.BLUE_50;
                PRIMARY_500 = MaterialColors.BLUE_50;
                PRIMARY_600 = MaterialColors.BLUE_50;
                PRIMARY_700 = MaterialColors.BLUE_50;
                PRIMARY_800 = MaterialColors.BLUE_50;

        }
    };

    public static Color PRIMARY_COLOR = MaterialColors.COSMO_BLUE;
    public static Color ASSIST_COLOR = MaterialColors.COSMO_RED;
    public static Color NORMAL_COLOR = MaterialColors.COSMO_DARK_GRAY;


    public static Color PRIMARY_50 = new Color (227, 242, 253);
    public static Color PRIMARY_100 = new Color (187, 222, 251);
    public static Color PRIMARY_200 = new Color (144, 202, 249);
    public static Color PRIMARY_300 = new Color (100, 181, 246);
    public static Color PRIMARY_400 = new Color (66, 165, 245);
    public static Color PRIMARY_500 = new Color (33, 150, 243);
    public static Color PRIMARY_600 = new Color (30, 136, 229);
    public static Color PRIMARY_700 = new Color (25, 118, 210);
    public static Color PRIMARY_800 = new Color (21, 101, 192);
    public static Color PRIMARY_900 = new Color (13, 71, 161);

    public static Color ASSIST_50 = new Color (255, 235, 238);
    public static Color ASSIST_100 = new Color (255, 205, 210);
    public static Color ASSIST_200 = new Color (239, 154, 154);
    public static Color ASSIST_300 = new Color (229, 115, 115);
    public static Color ASSIST_400 = new Color (239, 83, 80);
    public static Color ASSIST_500 = new Color (244, 67, 54);
    public static Color ASSIST_600 = new Color (229, 57, 53);
    public static Color ASSIST_700 = new Color (211, 47, 47);
    public static Color ASSIST_800 = new Color (198, 40, 40);
    public static Color ASSIST_900 = new Color (183, 28, 28);

    public static Color NORMAL_50 = new Color (255, 235, 238);
    public static Color NORMAL_100 = new Color (255, 205, 210);
    public static Color NORMAL_200 = new Color (239, 154, 154);
    public static Color NORMAL_300 = new Color (229, 115, 115);
    public static Color NORMAL_400 = new Color (239, 83, 80);
    public static Color NORMAL_500 = new Color (244, 67, 54);
    public static Color NORMAL_600 = new Color (229, 57, 53);
    public static Color NORMAL_700 = new Color (211, 47, 47);
    public static Color NORMAL_800 = new Color (198, 40, 40);
    public static Color NORMAL_900 = new Color (183, 28, 28);


}
